# -*- coding:utf8 -*- #
# -----------------------------------------------------------------------------------
# ProjectName:  smart-meter-iot-test
# FileName:     api_path.py
# Author  :
# Datetime:     2023/2/9 21:49
# Description：
# -----------------------------------------------------------------------------------
from common.util.configUtil.configUtil import ConfigUtil

status = ConfigUtil().get_database_status()


class PublicApi:
    if status:
        ipUrl = "https://api.smalleel.com"
    else:
        ipUrl = "https://test.cloudapi.smalleel.com"
    # 1.4.1、充值记录
    dbRechargePage = f"{ipUrl}/pub/v1/record/dbRechargePage"
    # 1.5.1电表信息分页
    dbPage = f"{ipUrl}/pub/v1/info/dbPage"
    # 1.5.2电表详情
    dbDetail = f"{ipUrl}/pub/v1/info/dbDetail"
    # 1.5.3电表用电量分析
    getPowerAnalysis = f"{ipUrl}/pub/v1/info/getPowerAnalysis"
    # 1.5.4、充值
    recharge = f"{ipUrl}/pub/v1/info/recharge"
    # 1.5.5、调整余额
    updBalance = f"{ipUrl}/pub/v1/info/updBalance"
    # 1.5.6、修改电价
    batchUpdDj = f"{ipUrl}/pub/v1/info/batchUpdDj"
    # 1.5.7、获取电表实时数据
    getDbRealTime = f"{ipUrl}/pub/v1/info/getDbRealTime"


if __name__ == '__main__':
    print(PublicApi.dbRechargePage)
